export const rules = {
  //编写账号登录规则
  name: [
    {
      required: true,
      message: '用户名是一定要写的',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{5,10}$/,
      message: '用户名长度在5到10个字符或者数字',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码是必填的',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,6}$/,
      message: '密码长度要在在 3 到 6 个字符',
      trigger: 'blur'
    }
  ]
}
